package com.project.bean;

import java.util.List;

/**
 * 用户实体类
 */
public class UserBean {
    /**用户编号*/
    private Integer userId;
    /**用户名*/
    private String userName;
    /**用户密码*/
    private String userPwd;
    /**用户拥有的权限*/
    private List<AuthorityBean> authorityBean;

    public UserBean() {
    }

    public UserBean(String userName, String userPwd) {
        this.userName = userName;
        this.userPwd = userPwd;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public List<AuthorityBean> getAuthorityBean() {
        return authorityBean;
    }

    public void setAuthorityBean(List<AuthorityBean> authorityBean) {
        this.authorityBean = authorityBean;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", authorityBean=" + authorityBean +
                "}\n";
    }
}
